﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WF_QLThuVien.PresentationLayer
{
    public partial class FormTraSach : Form
    {
        public FormTraSach()
        {
            InitializeComponent();
        }

        private void FormTraSach_Load(object sender, EventArgs e)
        {
            btnOk.Enabled = false;
        }

        private void btnCancel_Click(object sender, EventArgs e)
        {
            this.Dispose();
        }

        private void txtMaDocGia_TextChanged(object sender, EventArgs e)
        {
            if (txtMaDocGia.Text.Length > 0)
            {
                btnOk.Enabled = true;
            }
            else
            {
                btnOk.Enabled = false;
            }
        }
    }
}
